<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>导入价格对话框</title>
<link href="../admin/saleInformation/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../admin/saleInformation/js/jquery.js" ></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/ie6png.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('div,ul,li,a,p,img,body,dl,dt,dd');</script>
<![endif]-->
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

 
    
//   $(function(){       
//         //上传excel  
// //         解绑click事件在绑定 给上传文件按钮添加点击事件
//          $("#uploadEventBtn").unbind("click").bind("click",function(){  
//              $("#uploadEventFile").click();  
//          });  
// //         如果改变文件 ，文件路径也变化
//          $("#uploadEventFile").bind("change",function(){  
//              $("#uploadEventPath").attr("value",$("#uploadEventFile").val());  
//          });  
          
//     //点击上传按钮  
//    $("#uploadBtn").bind("click",function(){
// 	   var uploadEventFile = $("#uploadEventFile").val();  
//        if(uploadEventFile == ''){  
//            alert("请选择excel,再上传");  
//        }else if(uploadEventFile.lastIndexOf(".xls")<0){//可判断以.xls和.xlsx结尾的excel  
//            alert("只能上传Excel文件");  
//        }else{  
//            var url =  "${pageContext.request.contextPath}/openingReport/uploadExcel.action";  
//            var formData = new FormData($('#batchUpload')[0]); 
//            sendAjaxRequest(url,'POST',formData);  
//        }  
//    })      
//     function sendAjaxRequest(url,type,data){  
//         $.ajax({  
//             url : url,  
//             type : type,  
//             data : data,  
//             success : function(result) {  
//                 alert( result);  
//             },  
//             error : function() {  
//                 alert( "excel上传失败");  
//             },  
//             cache : false,  
//             contentType : false,  
//             processData : false  
//         });  
//     };   
    
// })

// 	$(function(){
// 		  $("#uploadEventBtn").unbind("click").bind("click",function(){  
//            $("#uploadEventFile").click();  
//        });  
// //         如果改变文件 ，文件路径也变化
//        $("#uploadEventFile").bind("change",function(){  
//            $("#uploadEventPath").attr("value",$("#uploadEventFile").val());  
//        });

//        $("#uploadBtn").bind("click",function(){
//     	   var uploadEventFile = $("#uploadEventFile").val();  
//            if(uploadEventFile == ''){  
//                alert("请选择excel,再上传");  
//            }else if(uploadEventFile.lastIndexOf(".xls")<0){//可判断以.xls和.xlsx结尾的excel  
//                alert("只能上传Excel文件");  
//            }
//        })      
// 	})



	




</script>
</head>
<body style="background:#fff;">
<br />
<div style="width:900px;" class="tbox01 boxcenter">
  <div class="tbox02">
    <dl>
      <dt>价格明细导入</dt>
      <dd></dd>
    </dl>
  </div>
  <div class="tbox03">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3" valign="bottom" class="tbox03font">价格明细导入</td>
      </tr>
      <tr valign="bottom">
        <td class="tbox03td1"><img src="../admin/saleInformation/images/tp03_1.gif"/></td>
        <td class="tbox03td2"></td>
        <td class="tbox03td3"><img src="../admin/saleInformation/images/tp03_3.gif"/></td>
      </tr>
    </table>
    <div class="tbox04">
      <div class="tbox05 margb7">
        <dl>
          <dt>
           <form enctype="multipart/form-data" id="form1"  action="${pageContext.request.contextPath }/openingReport/uploadExcel.action" method="post" class="form-horizontal">     
<!-- 			    上传的文件 -->
					<input type="file" name="excelFile">
<!-- 			    <input type="file"  name="excelFile"  style="width:0px;height:0px;" id="uploadEventFile">                                             -->
				<input type="submit" class="btn btn-success btn-sm"  id="uploadBtn" value="上传"/>   
			</form>
          </dt>
        </dl>
      </div>
    </div>
    <div class="tbox04">
      <div class="tbox05 margb7">
        <dl>
          <dt><strong>上传说明：</strong><br />
            1、如果房间数量、房间名称不正确，请返回&quot;2、选择房间&quot;，重新选择房间。<br />
            2、每次导入，请从系统中下载最新的模板。</dt>
        </dl>
      </div>
    </div>
  </div>
</div>
</body>
</html>
